<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<div id="leftcolumn">
	<c:choose>
		<c:when test="${pm.result eq null}">
			<h2>
				数据丢失，请稍后再试！
			</h2>
		</c:when>
		<c:otherwise>
			<c:forEach var="article" items="${pm.result}" varStatus="status">
				<div class="post">
					<div class="postdate">
						<fmt:formatDate value="${article.articleCreateTime}" pattern="dd" />
						<div class="month">
							<fmt:formatDate value="${article.articleCreateTime}" pattern="MM" />
						</div>
					</div>
					<div class="postbody">
						<div align="center">
							<h2>
								<a href="getArticle?articleId=${article.articleId}" target="_blank"><font color="black">${fn:substring(article.articleTitle,0,20)}</font></a>
							</h2>
						</div>
						<br />
						<div align="center">
							文章来源：
							<span><font color="#cccccc">${article.articleSource}</font></span>&nbsp;&nbsp;
							作者：
							<span><font color="#cccccc">${article.authorName}</font></span>&nbsp;&nbsp;
							阅读次数：
							<span><font color="#cccccc">${article.articleClick}</font></span>&nbsp;&nbsp;
							评论次数：
							<span><font color="#cccccc">${article.articleSumComment}</font></span>
						</div>
						<br />
						<div>
							<p>
								<img src="${article.articleStyleImage}" alt="${article.articleStyleName}" width="50" height="50"/>
								<a href="getArticle?articleId=${article.articleId}" target="_blank"><font size="2">${fn:substring(fht:delHTMLTag(article.articleSummary),0,180)}......</font></a>
							</p>
							<div class="comment_more">
								<span>我要评论</span>-
								<a href="getArticle?articleId=${article.articleId}" target="_blank">详细内容</a>
							</div>
						</div>
					</div>
				</div>
			</c:forEach>
		</c:otherwise>
	</c:choose>
      
    <!-- 分页信息 -->
	<div align="right">
		<c:if test="${pm.result ne null}">
			<script>
         	var pg = new showPages('pg');
         	pg.pageCount = ${pm.maxPage};
         	pg.argName = 'currentPage';
         	pg.printHtml();
         </script>
		</c:if>
	</div>
	<br />
</div>

